testsuite: Redo listbox sort test
authorMatthias Clasen <mclasen@redhat.com>
Sat, 9 May 2020 02:39:51 +0000 (22:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 May 2020 02:21:39 +0000 (22:21 -0400)
commitc55aa7e590c37b1e239dd793e2fc3027962ebe1c
treef9db4d57fdeed752eb30b71fba0ec36077b5a3a4
parent88141103cdf5fd294b19d4473245f42201aa6b93
testsuite: Redo listbox sort test

This test was relying on gtk_container_forall returning
the visual (ie sorted) order of children, while iterating
with the widget dom api gives the insertion order.

Instead of using gtk_container_forall, use
gtk_list_box_row_get_index to reconstruct the visual
order.
testsuite/gtk/listbox.c